public class Main {
    public static void main(String[] args) {
        Solution s = new Solution();
        String str = "abcabcbb";
        int len = s.lengthOfLongestSubstring(str);
        System.out.println(len);
    }
}